const { $Message } = require('../../dist/base/index')

Page({
  handleDefault () {
    $Message({
      content: '这是一条普通提醒'
    })
  },
  handleSuccess () {
    $Message({
      content: '这是一条成功提醒',
      type: 'success'
    })
  },
  handleWarning () {
    $Message({
      content: '这是一条警告提醒',
      type: 'warning'
    })
  },
  handleError () {
    $Message({
      content: '这是一条错误提醒',
      type: 'error'
    })
  },
  handleDuration () {
    $Message({
      content: '我将在 5 秒后消失',
      duration: 5
    })
  }
})
